package cn.stylefeng.guns.modular.opportunities.service.impl;

import cn.stylefeng.guns.modular.system.dao.MenuMapper;
import cn.stylefeng.guns.modular.system.model.Bopportunities;
import cn.stylefeng.guns.modular.system.dao.BopportunitiesMapper;
import cn.stylefeng.guns.modular.opportunities.service.IBopportunitiesService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zsq
 * @since 2018-08-14
 */
@Service
public class BopportunitiesServiceImpl extends ServiceImpl<BopportunitiesMapper, Bopportunities> implements IBopportunitiesService {
    @Transactional
    @Override
    public Bopportunities fandOneNext(int bopportunitiesId) {
        return   this.baseMapper.fandOne(bopportunitiesId);
    }

    @Override
    public Bopportunities fandOneLast(int bopportunitiesId) {
        return this.baseMapper.fandLast(bopportunitiesId);
    }

}
